package com.gxa.modules.payment.service.impl;

import com.gxa.modules.payment.entity.*;
import com.gxa.modules.payment.form.MeterCycleQueryTimeForm;
import com.gxa.modules.payment.form.MeterQueryNameForm;
import com.gxa.modules.payment.mapper.ChargeDropDownMapper;
import com.gxa.modules.payment.service.ChargeDropDownService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChargeDropDownServiceImpl implements ChargeDropDownService {

    @Autowired
    private ChargeDropDownMapper chargeDropDownMapper;

    @Override
    public List<Item> queryItemAll() {
        List<Item> items = this.chargeDropDownMapper.queryItemAll();
        return items;
    }

    @Override
    public List<Method> queryMethodIdByName() {
        List<Method> methods = this.chargeDropDownMapper.queryMethodIdByName();
        return methods;
    }

    @Override
    public List<Unit> queryUnitAll() {
        List<Unit> units = this.chargeDropDownMapper.queryUnitAll();
        return units;
    }

    @Override
    public List<Accuracy> queryAccuracyAll() {
        List<Accuracy> accuracies = this.chargeDropDownMapper.queryAccuracyAll();
        return accuracies;
    }

    @Override
    public List<MeterQueryNameForm> queryMeterCodeByName() {
        List<MeterQueryNameForm> meters = this.chargeDropDownMapper.queryMeterCodeByName();
        return meters;
    }

    @Override
    public List<MeterCycleQueryTimeForm> queryMethodCycleIdByName() {
        List<MeterCycleQueryTimeForm> meterCycles = this.chargeDropDownMapper.queryMethodCycleIdByName();
        return meterCycles;
    }
}
